
def mao(data):
    for i in range(0,len(data)-1):
        for j in range(0,len(data)-1-i):
            if data[j] > data[j+1]:
                data[j],data[j+1] = data[j+1],data[j]
    return data

data = [9,2,1,15]
s = mao(data)
print(s)


a = [1,2,3,4,5,6]
a1 = a[::-1]
print(a1)

def hui(n):
    if n == n[::-1]:
        return True
    else:
        return False

print(hui(str(123456)))